package com.ez.supervise.service;

import java.util.List;
import java.util.Map;

import com.ez.supervise.model.sys.Permission;
import com.ez.supervise.service.base.BaseService;

/**
 * @author searph.wang
 * @email searph.wang@gmail.com
 * @Created at 2009-7-22
 * 
 */
public interface PermissionService extends BaseService {

    /**
     * @return
     */
    List findAll();

    /**
     * @return
     */
    Map<String, Permission> findAllMenu();
    Map<String, Permission> findAllSubMenu();

    /**
     * @param id
     * @return
     */
    List<Permission> findPermission(Long userId);
}
